package com.lzh.farmersshop.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * (Shoppcart)实体类
 *
 * @author makejava
 * @since 2024-01-04 15:37:12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Shoppcart implements Serializable {
    private static final long serialVersionUID = -90089854174138756L;
    /**
     * 购物车id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 商品id
     */
    private Integer goodsid;
    /**
     * 购买数量
     */
    private Integer num;
    /**
     * 购买价格
     */
    private BigDecimal price;
    /**
     * 加购时间 年月日时分秒
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;
    /**
     * 用户id
     */
    private Integer userid;
    /**
     * 1正常2删除
     */
    private Integer isdelete;


}
